package com.easy.app;

import lombok.extern.log4j.Log4j2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Log4j2
@EnableAspectJAutoProxy(exposeProxy = true)
@ComponentScan(basePackages = {"com.easy.**","com.easy.framework.cache"})
@MapperScan(basePackages = {"com.easy.module.**.mapper"})
@SpringBootApplication
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        log.info("启动成功");
    }
}